package lab02.test30;

import java.util.Scanner;

public class Test30 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入数组的长度：");
        int n = sc.nextInt();

        int a[] =new int[n];
        int sum = 0;
        for (int i = 0;i<a.length;i++){
            a[i]= sc.nextInt();
            sum = sum + a[i];
        }
        double average = sum/n;
        System.out.println("平均分："+average);
    }
}
